package com.dangz.dans.model;
import lombok.Getter;
import lombok.Setter;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import javax.persistence.Id;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author dangz
 * @since 2018/7/27 10:09
 */
@Document
public class SNMPEntity implements java.io.Serializable {
    @Getter
    @Setter
    @Id
    private ObjectId id;
    @Getter
    @Setter
    @Field("ifRecvTime")
    private LocalDateTime ifRecvTime;
    @Getter
    @Setter
    @Field("ifEntry")
    private List<org.bson.Document> ifEntry;
    @Getter
    @Setter
    @Field("ifNumber")
    private Integer ifNumber;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public LocalDateTime getIfRecvTime() {
        return ifRecvTime;
    }

    public void setIfRecvTime(LocalDateTime ifRecvTime) {
        this.ifRecvTime = ifRecvTime;
    }

    public List<org.bson.Document> getIfEntry() {
        return ifEntry;
    }

    public void setIfEntry(List<org.bson.Document> ifEntry) {
        this.ifEntry = ifEntry;
    }

    public Integer getIfNumber() {
        return ifNumber;
    }

    public void setIfNumber(Integer ifNumber) {
        this.ifNumber = ifNumber;
    }
}
